<%--
  Created by IntelliJ IDEA.
  User: zzz
  Date: 2023/1/3
  Time: 11:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../static/bootstrap-5.1.3-dist/css/bootstrap.css">
    <script type="text/javascript" src="../static/bootstrap-5.1.3-dist/js/bootstrap.js"></script>
    <title>新增管理员</title>
</head>

<style>
    .back{
        position: absolute;
        font-size: 26px;
        top:30px;
        left:40px;
        text-decoration: none;
        color: #000;
        font-weight: bold;
    }
    .back:hover{
        color: #000;
    }

    .card{
        width: 1400px;
        height: 700px;
        background-color: #fffdfd;
        border-radius: 30px;
        border: none;
        box-shadow: 5px 5px 10px #adabab;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }

    .add{
        padding: 80px 300px;
    }
    .mb-3{
        padding-bottom: 30px;
    }
    .btn button:nth-child(1){
        margin-right: 40px;
    }
</style>

<body>
<a href="${pageContext.request.contextPath}/admin/admin_list" class="back">
    <span><</span>返回</a>

<div class="card">

    <form  action="admin_add" method="post" enctype="multipart/form-data" class="add">
        <div class="form-floating mb-3">
            <input type="text" class="form-control" name="username" id="floatingName" placeholder="姓名">
            <label for="floatingName">管理员姓名</label>
        </div>
        <div class="form-floating mb-3">
            <input class="form-control" type="password" name="password" id="floatingPassword" placeholder="密码" autocomplete="off">
            <label for="floatingPassword">密码</label>
        </div>
        <div class="form-floating mb-3">
            <input class="form-control" type="text" name="phone" id="floatingPhone" placeholder="手机号" autocomplete="off">
            <label for="floatingPhone">电话号码</label>
        </div>
        <div class="form-floating mb-3">
            <input class="form-control" type="text" name="userprofile" id="floatingProfile" placeholder="用户简介" autocomplete="off">
            <label for="floatingProfile">个人简介</label>
        </div>
        <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">上传头像</label>
            <div class="col-sm-10">
                <input type="file" class="form-control" name="photo">
            </div>
        </div>
        <div class="mb-3 row">
            <div class="btn">
                <button type="submit" class="btn btn-outline-success btn-lg">新 增</button>&nbsp;&nbsp;&nbsp;
                <button type="reset" class="btn btn-outline-dark btn-lg">重 置</button>
            </div>
        </div>
    </form>
</div>

</body>
</html>
